home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Graphics / Sparkle2.1.5 folder / (Docs) / New in 2.1.5 < prev    next >
Encoding:
Text File  |  1994-09-20  |  24.6 KB  |  407 lines  |  [TEXT/ALFA]

  1. What's new in 2.1.5?
  2. • Somewhere in the cleanups of code of the last few revs I landed up 
  3.     dividing some color motion vectors by two too often resulting in
  4.     misaligned color on MPEGs created without half-pixels. This is fixed.
  5. • Alert user Piotr Flatau pointed out a memory leak when converting a PICT-
  6.     sequence to a QT movie. I'm ashamed to admit this is both a serious 
  7.     and not-at-all subtle bug. My only excuse is that the PICT-sequence code
  8.     was written at high speed cutting and pasting old code together, to do 
  9.     a favour for a user who wanted something ASAP. Now the memory bug is fixed
  10.     along with some other misc weirdnesses associated with PICT-sequences. 
  11.     However that code is still a complete shambles. Wait until 2.1.6 before 
  12.     it's completely robust.
  13. • Threads can send messages to the main thread through urgent chores, however 
  14.     my Idle() loop was not testing for the presence of urgent chores when 
  15.     deciding whether or not to break. This is now fixed---result is that when 
  16.     a thread ends encoding under certain rare circumstances it cleans things 
  17.     up sooner.
  18.  
  19. What's new in 2.1.4?
  20. • Many many internal cleanups of the code as part of my cleanup for 
  21.     PowerPC. If these cleanups broke anything, please tell me.
  22. • There was in bug in some earlier versions so that when you opened Sparkle 
  23.     on a system without QuickTime rather than quitting gracefully it could 
  24.     crash when quitting. Now fixed.
  25. • Minor changes have been made to better support Macintosh Easy Open.
  26. • When saving an MPEG or QT movie in an alternative form the play button 
  27.     of the movie controller is hidden which I think looks better.
  28. • When a movie saving was in progress and was paused, if the relevant 
  29.     window was covered then uncovered (generating an update event)  
  30.     Sparkle would hang. This was because Sparkle tries to switch to 
  31.     a thread that has been put to sleep. This has been fixed.
  32. • If an MPEG were opened and immediately command-S were typed, once the 
  33.     saving was done it was possible for Sparkle to popup an error message.
  34.     The problem was that the very first update event for the MPEG window, 
  35.     used to initialize some variables, would be discarded is a save were 
  36.     begun immediately. The code used when an MPEG is opened has been fiddled
  37.     a little to prevent this.
  38. • I was asked by some people doing Sparkle for batch conversion of MPEG 
  39.     and QT for a way for Sparkle to indicate when it is done converting a 
  40.     file. I won't have AppleScriptability in place for a few months but I 
  41.     did put in a quick hack to allow this for users of QuicKeys. Look in the 
  42.     ReadMe 2nd file for details (do a search for QuicKeys). 
  43. • In the code I added to 2.1.3 to support halfPixels I made a typo which 
  44.     under rare circumstances would set the color of a block incorrectly or 
  45.     (if you were unlucky) crash. This is fixed.
  46. • Memory used for MPEG encoding MPEGs has been dramatically reduced. 
  47.     For the case of encoding MPEGs with only I-frames, the memory 
  48.     required is 1/6th of what was required in 2.1.3 and earlier versions. 
  49.     For MPEGs using P and/or B frames, memory required is about 1/4 of
  50.     what required earlier. These memory requirements
  51.     will be shrunk further in later versions of the code.
  52. • The MPEG Playback prefs dialog has cleaned up a little and behaves a 
  53.     little more intuitively. Now the options under the 8bit color section 
  54.     always apply when the screen is 8bit color, regardless of the 8bit 
  55.     dithering method used.
  56.     There is now a tryout button. Click there to see how the changes you 
  57.     make alter what you see.
  58. • Two further options have been added to the MPEG Encoding dialog to give 
  59.     you a little more control over this behavior. 
  60.     You can now specify whether half-pixel encoding is used or not
  61.     (in the past half-pixels were always used).
  62.     Likewise you can specify whether or not to compare against raw 
  63.     reference frames or reference frames decoded from the MPEG stream being 
  64.     created (in the past decoded reference frames were always used).
  65.  
  66. What's new in 2.1.3?
  67. • There was a bug in 2.1.2 that prevented one (usually) from playing MPEGs 
  68.     in play all frames mode. So sorry about that. This is fixed.
  69. • I have (FINALLY) fiddled the P and B frame calculations to be EXACT at 
  70.     highest quality settings (ie when saving an MPEG to a secondary file.)
  71.     The last few touches involved doing all the finicky details specified 
  72.     in the MPEG DIS (which in the worst case can involve compositing a single 
  73.     image point from values spread over nine different places. The differences 
  74.     are very subtle but are visible---large areas of smooth texture in 
  75.     particular in the past tended to develop a slight granularity which is 
  76.     now cured.
  77.     This code involved coding a huge number of special cases and I may have 
  78.     made a mistake in a case or two. I have run all my example MPEGs through 
  79.     and they look good but if you see a block that looks misaligned or has a 
  80.     different color from what it should have, please tell me so I know I 
  81.     need to fix a mistake.
  82. • There was a bug in 2.1.2 and earlier versions where, if an MPEG was playing 
  83.     and you closed the window there was a small chance of an error message 
  84.     popping up. This bug was due to what's called a race condition. 
  85.     It should have been fixed, but if not please tell me.
  86.  
  87. What's new in 2.1.2?
  88. • In 2.1 when a window was first opened and the Video menu selected, the 
  89.     menu showed Palindrome looping as on even though it was not. This is fixed.
  90. • In 2.1 I had a serious (crashing) possible bug that could occur when a 
  91.     window was closed. This was because the life cycles of video encoding 
  92.     threads and video playing threads are different. I must rationalize 
  93.     these to one model, but till then I've applied a quick and dirty fix.
  94. • Long complicated pathways through about six auxiliary functions, used when 
  95.     threads died and a holdover from the Sparkle 1.x days, have been removed to 
  96.     use a much simpler virtual function based scheme. This is slightly faster
  97.     and, more important, much simpler hence, hopefully, less buggy.
  98. • Deactivating/activating of the ``Change file type to MPEG'' radio button in     
  99.     the open file dialog was a little erratic. This has been fixed.
  100. • Rudimentary balloon help has been added.
  101. • When memory is very low and a window starts being opened, but fails 
  102.       partway, the cleanup code was slightly wrong. Now fixed.
  103. • Improved the display on 4-bit color screens. It was very blocky.
  104. • Changed the progressbar to display properly on 4-bit color screens.
  105.     The two colors used for foreground and background were being mapped onto
  106.     the same color.
  107. • Change the progress bar to update itself better when parts of the window are 
  108.     uncovered. Before parts would be drawn quite a while before other parts
  109.     giving a result that looked silly.
  110. • Added a menu option to allow operation without ever yielding time to 
  111.     WaitNextEvent. If you don't need to give time to background applications, 
  112.     use this option for faster, less jerky, playback.
  113. • Speech manager code used to announce a delay when encoding an MPEG 
  114.     could, if timing was just wrong, crash. I think the problem was that the 
  115.     Speech Manager was building internal data structures on the stack, and 
  116.     that stack disappeared when the the MPEG encoding thread died. Anyway 
  117.     I've modified the speech code so this can't happen.
  118. • Discovered a serious problem in my video encoding code. When an MPEG 
  119.     window was resized while it was being converted to another MPEG or QT 
  120.     movie, the result could be a munged image for a few frames. The fix 
  121.     involved a major structural readjustment of Sparkle---ALL video 
  122.     manipulations now pass through ThreadEvent queues---but the result is 
  123.     that for the first time I feel confident about the theoretical 
  124.     underpinnings of Sparkle---that while minor bugs may remain, there are 
  125.     no conceptual nasties waiting to bite me.
  126. • When windows are resized, the resizing is done in a manner that leaves 
  127.     no gunk in the window in the moments before the resizing is complete.
  128. • I discovered yet another way in which things could crash---The MacOS call
  129.     DrawPicture() will crash if it runs out of memory---thanks Apple.
  130.     There's nothing I can do about this, so what I did do is try to trap 
  131.     situations that form a pattern of using DrawPicture() while memory is 
  132.     getting lower and warn you that memory is running low. This doesn't 
  133.     catch all situations but catches some.
  134. • The play/pause button no longer toggles between states when you start a 
  135.     movie saving or pause it. This is because what I was doing to get this 
  136.     to work in QT 1.x no longer works nicely in QT 2.0 --- flickering frames
  137.     result. I guess this is a consequence of DataPipe or something. 
  138.     Anyway I've replaced this with indicators in the title bar.
  139. • I made a few changes to allow easier more sensible playback of QT movies that 
  140.     consist of only sound. This is at present rudimentary but is a start.
  141.  
  142. What's new in 2.1?
  143. • Yet again memory management has been fiddled with. Previous tinkering with 
  144.     memory management was to ensure that my own code never crashed for lack 
  145.     of memory. Building on top of that, I've tried to ensure that calls to 
  146.     the operating system won't crash for lack of memory. This is more 
  147.     difficult because, obviously, I don't know just what the memory 
  148.     requirements of each call are. However I've done the best I can, and 
  149.     the resultant code seems even more robust than 2.02.
  150. • The scheduling has been revamped based on the threading. I now make 
  151.     intelligent decisions about which thread to schedule when. Also calls to
  152.     the main event loop, which were very expensive in time, have been cut 
  153.     dramatically. the result is about a 15% speed boost all round.
  154. • MPEG playback is now based on genuine timing, not on simply playing 
  155.     every frame as fast as possible. Like QuickTime movies, you can play 
  156.     MPEGs back in real time or play every frame. I also now support the 
  157.     movie controller variable speed controls obtained by control-clicking 
  158.     on the forward/backward stepper buttons.
  159. • You can now set QT and MPEG movies to loop.
  160. • You can now grow or shrink MPEG and QT movie windows.
  161. • The cursor is now hidden when movie playback starts, until you move it.
  162.     This seems to be a reasonable compromise for preventing flickering cursor
  163.     when starting a movie using the keyboard, but atill allows the user 
  164.     easily to find the cursor when needed.
  165. • When files are opened, windows are now tiled in a vaguely intelligent fashion,
  166.     attempting both to use the available screens with best depth, and to 
  167.     avoid window overlap.
  168. • Dragging windows is now aligned to a grid of optimal window placement. This
  169.     gives better movie playback.
  170. • Can now show/hide the progressPane, movie controller and frame count with the 
  171.     tab key using tab, shift-tab, control-tab.
  172. • The drawing of the progress bar has been altered slightly, to fix cosmetic 
  173.     defects and to make the appearance closer to that of the movie controller.
  174. • Support for MPEGs with a pixel aspect ratio not equal to one has been added.
  175.       At present this isn't switched on because some dumb MPEGs out there 
  176.       have a bogus aspect ratio encoded in them. However if someone wants 
  177.       this feature right away, I'll add a user interface to access it.
  178. • Support for MPEGs with multiple sequence headers has been added, not 
  179.     that I have ever seen such an MPEG.
  180. • Playback is now much faster through a variety of mechanisms. However 
  181.     this has, as a consequence, lower quality playback. You may set through 
  182.     preferences which optimizations you're willing to accept for faster 
  183.     playback and which you're not willing to accept. All optimizations are 
  184.     turned off when converting an MPEG to another format so that you'll get 
  185.     the best possible quality.
  186.     Playback speed is now about 1.6 times faster for 24 bit screens, about 
  187.     2.5 times as fast for 8 bit grey screens, and improvements in between for 
  188.     other screen depths.
  189. • Special purpose display code is used for 
  190.     24 bit, 16 bit and 8 bit color screens and 8 bit grey screens.
  191.     All other screens are sent through one of the above special purpose codes 
  192.     then use QuickTime to convert the pictures to the appropriate screen depth.
  193.     Obviously special purpose code is faster. If I get lots of calls for 
  194.     screen depths other than the one's I'v supported directly, I'll look into 
  195.     adding more special purpose code.
  196. • In 2.0 I broke the support for adding files called name.mpg, but without 
  197.     a file type of MPEG so you could open files of that type but nothing 
  198.     would happen. Sorry about that. It's been fixed. 
  199. • When files are opened and are not of the default Mac types (for example 
  200.     files imported from a UNIX box, or files on a PC CD ROM) Sparkle uses 
  201.     more intelligence in deciding whether to open these files as MPEGs, QT 
  202.     movies or pictures. If this mechanism is still not general enough for 
  203.     some users (I image mainly users sharing data with PCs), let me know.
  204. • The ``official'' MPEG encoding pattern of IBBPBBPBBPBB is now a pre-defined 
  205.     option. Some people asking for this as a pre-defined option have given me
  206.     slightly different patterns as the ``official'' pattern. However what I 
  207.     have used is, to the best of my knowledge correct, and I'm assuming these
  208.     people who wrote to me simply made typos. If you have comments on this, 
  209.     please mail me.
  210. • I twiddled the RGB to YCrCB conversion code that is the first step in 
  211.      encoding MPEGs. The changes won't affect anyone except people creating 
  212.      MPEG movies whose width or height is odd, in which case the very last 
  213.      row or column of pixels will have more accurate color. The important 
  214.      change, however, was that I no longer read beyond the end of some arrays,
  215.      so I'm ready for when Apple give us protected memory a year from now.
  216. • Under certain rare circumstances, depending on the number of frames int the 
  217.     input file and the IPB pattern used, the last frame or two of the input 
  218.     would not be saved in the output MPEG. This is fixed.
  219. • MPEG encoding now can specify a frame rate (in the past this was always 
  220.     30 fps). Sure the range of choices is limited---blame the people who 
  221.     wrote the MPEG spec---those are, basically, the only choices.
  222.     1) Can people with MPEG hardware verify that this works for me?
  223.         On my mac with 10fps max playback, it's tough to see if this works.
  224.     2) There are some frame rates I've omitted that are very close to those 
  225.        I give, for example 29.97 fps. At some point i'll get the finicky 
  226.        time right to support these but it's a pretty low priority compared 
  227.        to sound.
  228.  
  229. What's new in 2.01?
  230. • Implemented padding YUV macroblocks with a repeat of the last value of
  231.      each YUV triplet when macroblocks at the edge of a frame spill over 
  232.      the edge. The most common case of this is a 120 pixel high movie with a 
  233.      macroblock height of 128. In the past this spillover was filled randomly.
  234.      The result of this is that MPEGs created are about 15% smaller.
  235. • Some diddling with the code used by the IDCT algorithm gives a speed boost 
  236.     of about 5% to both playing and encoding MPEGs.
  237. • Fixed a serious bug that prevented you from playing an MPEG if you started 
  238.     playing    it then interrupted it. A nice byproduct of this is that I got 
  239.     jogging of MPEGs fully operational. You can now repeatedly view a section 
  240.     of the MPEG by hitting command-right-arrow then command-left-arrow to keep 
  241.     the MPEG moving forwards then backwards.
  242. • Altered the alert popped up when the Thread Manager is not present to make
  243.     it more palatable to corporate and institutional users.
  244. • Fixed the MPEG buffering which would give problematic results for very small
  245.     MPEGs (say three frames or less).
  246. • Finally went through all resources, marking them purgable or not and removing
  247.     the unnecessary ones.
  248. • Fixed the "PBBIBB" default frame set to make it correspond to the user view
  249.     of things, not my programmer's view.
  250. • Fixed a bug that prevented a temporary movie created by the movie controller 
  251.     handling an MPEG file from being destroyed.
  252. • Fixed two bugs in the Think Class Library dealing with the loading of dialogs 
  253.     then manipulating them without setting their memory blocks to non-purgable.
  254. • Fixed a long-standing bug in the MPEG player buffer-handling code that 
  255.     would cause the MPEG frame index to be incorrect if it was created while 
  256.     memory was short. This probably never caused problems except for very long
  257.     MPEGs.
  258. • When converting a QT movie into a different movie form, the dialog that comes
  259.     up asking you for compression options will have the frame rate and key
  260.     frame rate set at what the original movie used, sparing you from having to
  261.     guess. I will eventually have this working across all file conversions, 
  262.     not just movie-->movie.
  263. • The Think C 6 compiler contains a bug when performing code-motion optimization 
  264.     on complex loops. If you run through the assembly it produces in this case,
  265.     it performs some very nifty register coloring and creating induction 
  266.     variables for the loop. It then leaves out one crucial instruction to 
  267.     update one of the induction variables each pass through the loop and so 
  268.     the code is garbage. 
  269.     As far as I can tell, this only affects one function in my code and I have
  270.     used a #pragma there to prevent it happening, but the fact that bugs like
  271.     this exist in the compiler is a little worrying.
  272. • Revised all memory allocation so that it is more likely to not to use up all
  273.     memory reserves and leave nothing for toolbox.
  274. • Found an especially nasty bug involving grabbing frames from a QT movie 
  275.     which, when memory ran low, would leave the system GrafPort/GDevice 
  276.     environment in an inconsistent state.
  277. • Revised all uses of GWorld to use tempMem, but fallback to local heap if 
  278.     tempMem is unavailable.
  279. • Altered the strings used to popup error messages at startup if QuickTime 
  280.     is not available. These got mixed up when I moved code around.
  281. • The code to build the MPEG index when an MPEG is opened would run out of space
  282.     when a very large MPEG was opened---one of a thousand frames or more. Now 
  283.     memory is allocated for this a little more flexibly.
  284. • Fixed a bug I inserted when I changed from Sparkle 1.6 to 1.7. I rewrote the
  285.     Berkeley motion vector code to speed it up and in the process made one 
  286.     little typo, shifting a variable right by 1 not 2. The effect of this, in 
  287.     Sparkles 1.7 and 2.0 was that, under very rare occasions, blocks of color 
  288.     would appear a few pixels off from where they should be. The only place I 
  289.     ever saw this was three or four frames of the MPEG sales110.mpg.
  290.     This is not related to a separate problem. 
  291.     The motion estimation code in the MPEG encoder (at present the Berkeley code
  292.     with practially no changes) is not perfect. It sometimes creates 
  293.     blocks that appear to be wildly off from where they should be (by quite a few
  294.     pixels). This is not very obvious in real life, but is very obvious in animation.
  295.     This is largely a quantization artifact---it goes away if you lower the 
  296.     quantizations. But obviosly you don't want to do that always, just where 
  297.     necessary, so you really want a smarter quantizer that is adaptive. 
  298.     I'll work on issues like this as soon as I can.
  299. • When converting a movie with sound to MPEG or QT, occasionally pops of sound could 
  300.     be heard. This is fixed.
  301. • When converting movies with very low keyframe rates (say 20 or more dependent 
  302.     frames per keyframe) occasionally the display of the movie would get confused 
  303.     and appear to alternate between two different frames. This is fixed.
  304.  
  305. What's new in 2.0?
  306. • The structure of the code has been completely altered to be based on 
  307.     threads. This makes it much easier for me to add new features to the code 
  308.     while having it retain MultiFinder friendliness.
  309. • Now opens and plays QT movies.
  310. • Now can create MPEG files. General conversion from 
  311.      {QT or MPEG}--->{QT or MPEG} is possible.
  312. • Many minor changes to the way files are opened, named and such.
  313. • Makes minor use of the speech manager if installed.
  314. • You can now play MPEGs backwards.
  315.  
  316. What's new in 1.71?
  317. • The progress bar now updates itself properly at the very end of saving 
  318.     each frame to Quicktime. It also draws itself better on b/w screens.
  319. • More of the default QT movie player keystrokes now work.
  320. • The app notes if an MPEG file has many errors and if so warns you that 
  321.     it has probably been transferred to the mac incorrectly.
  322. • I have incorporated a workaround to make Sparkle work with the QT VM 
  323.     extension. However I do not recommend you use the two together. If you do 
  324.     use QT VM you will find Sparkle's memory usage a little less efficient 
  325.     than without using QT VM. This is because of the way QT VM works.
  326. • Fixed a bug that caused unusually sized MPEGs to display as distorted.
  327. • Sparkle should now cope a little better with low memory situations.
  328. • Added a small tweak to improve drawing on 16bit screens under low 
  329.     memory conditions.
  330. • Uses the most recently released version on the floating windoid.
  331. • I have learned of an app that will convert QT to MPEG on the mac. It's 
  332.     not the easiest thing to use and I recommend this only for people 
  333.     who really need this, not for people who just want to play around.
  334.     See the README file for details.
  335.  
  336. What's new in 1.7?
  337. • Opening files is much faster.
  338. • Fixed the size of the checkboxes in the Open File dialog to the correct 
  339.     size for all those millions of people who use Chicago as their system 
  340.     font cause they have no sense of aesthetics. Oops.
  341. • Now when Sparkle changes the file-type of an file, the Finder will update 
  342.     the icon immediately, instead of forcing you to open and close the 
  343.     folder to see a new icon. Thanks to Jamie McCarthy for telling me how 
  344.     to do this.
  345. • Added an "About Sparkle" dialog box to quieten the constant stream of 
  346.     complaints about this.
  347. • Changed the way progress is reported. I think the new scheme feels 
  348.     rather more elegant. (If you have a fast machine and only use small 
  349.     MPEGs, you may not notice this change much.)
  350. • Adde random access. You can now use the step backward stepper, or 
  351.     simply click in movie controller where you want to go. All standard 
  352.     movie controller clicks and keystrokes are supported.
  353. • Restructured the internal code vastly. This is what took most of the 
  354.     time and while it doesn't directly help you users, it gives me
  355.      a framework that's much easier to build on. For example it should be 
  356.      trivial to add Apple Event support when I get round to that.
  357. • Three or four minor bugs were squelched, mostly involving Sparkle crashing
  358.      when it encountered MPEGs with invalid data in them.
  359. • Now quits gracefully when started on a 68000 mac like a Classic, rather 
  360.     than crashing. I'm sure    lots of people care about this.
  361. • Added better multi-tasking support. This takes two forms. 
  362.     One is that the length of the timeslices Sparkle uses before giving up 
  363.     the CPU are now absolute times.  Before they were numbers that worked 
  364.     well for my SE/30, but probably not optimally for slower or faster 
  365.     machines.
  366.     The second is that you can now context switch out of Sparkle while it 
  367.     is doing slow QT conversions (especially converting to Compact Video).
  368.     The way I have implemented this is not wonderful, but the best I can 
  369.     do given the present way the code is structured. The next version 
  370.     will use the Thread Manager and will do this rather better.
  371.     This second form of timeslicing is done through the 
  372.     SetSequenceProgressProc() call which is new in QT1.6 and which is why 
  373.     I now require use of QT1.6. Also QT does not yield the CPU very often,
  374.     and (as far as I know) there is no way to make it yield more often.
  375.     So while your machine is no longer completely frozen as it does its
  376.     conversion, it's still not too pleasant to use for typing. I can't do 
  377.     much about this---complain to Apple and tell them to change this part of 
  378.     QT, or better yet the whole OS.
  379.  
  380. What's new in 1.6?
  381. • I became tired of continually having to explain to people about mac 
  382.     file types, so I wrote a file filter function for the Open File dialog 
  383.     box which displays ALL files with a .mpg suffix. This should make use a 
  384.     lot easier for novices.
  385. • Fixed a bug that involved writing to NULL.
  386. • Fixed a bug that prevented IBP type MPEGs from rewinding when they 
  387.     reached the end and the play button was hit twice.
  388.  
  389. What's new in 1.5.2?
  390. • I was disposing of a handle twice (specifically I was disposing of a 
  391.     pixmap and then its colortable, not realizing that DisposPixMap took 
  392.     care of the colortable for me.) Thanks to Dan Sears for pointing this out.
  393.     I never noticed a problem due to this bug, but it's probably good to 
  394.     have killed it.
  395.  
  396. Whats new in 1.5.1?
  397. • One part of my speed optimizing code was not being initialized properly. 
  398.     This caused a very specific type of MPEG file to show parts of its first 
  399.     frame as greenish blobs. Now fixed.
  400. • The code to detect errors in a corrupted MPEG file has been made even 
  401.     more robust. Substantially better recovery from such errors, by 
  402.     rebuilding the lost parts of a frame from the previous frame, has been 
  403.     introduced. Thanks to a wonderfully corrupt MPEG file I pulled off 
  404.     usenet with about 15 misc errors in it for pointing out new and 
  405.     ingenious ways to fail.
  406. • New icons, courtesy of Richard Lim in Britain. I hope you like them.
  407.     You will have to rebuild the desktop to see them.